package com.gouqi.mall.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(value = "产品品牌信息")
public class ProductBrand extends ValueObject{
    @ApiModelProperty(value = "用户id")
    private Integer id;
    @ApiModelProperty(value = "商标名称",required = true)
    private String name;
    @ApiModelProperty(value = "创始人")
    private String founder;
    @ApiModelProperty(value = "电话")
    private String cellphone;
    @ApiModelProperty(value = "座机")
    private String telephone;
    @ApiModelProperty(value = "生产地址")
    private String productAddress;
    @ApiModelProperty(value = "品牌商标")
    private String brandTradeMark;
    @ApiModelProperty(value = "商标图标")
    private String tradeMark;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "注册时间,注册时间，格式：yyyy-MM-dd HH:mm:ss",example="2020-04-01 15:59:30")
    private String registerTime;
    @ApiModelProperty(value = "注册地址")
    private String registerAddress;
    @ApiModelProperty(value = "营业执照")
    private String businessLicense;
    @ApiModelProperty(value = "食品安全许可证")
    private String foodSafetyPermit;
    @ApiModelProperty(value = "是否下架")
    private Boolean takeoff;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "下架时间,下架时间，格式：yyyy-MM-dd HH:mm:ss",example="2020-04-01 15:59:30")
    private String takeoffTime;
    @ApiModelProperty(value = "下架原因")
    private String takeoffReason;
    @ApiModelProperty(value = "审核状态【1：通过，2：不通过，3：审核失败】")
    private String approval;

    public ProductBrand(){}

    public ProductBrand(Integer id, String name, String founder, String cellphone, String telephone, String productAddress, String brandTradeMark, String tradeMark, String registerTime, String registerAddress, String businessLicense, String foodSafetyPermit, Boolean takeoff, String takeoffTime, String takeoffReason, String approval) {
        this.id = id;
        this.name = name;
        this.founder = founder;
        this.cellphone = cellphone;
        this.telephone = telephone;
        this.productAddress = productAddress;
        this.brandTradeMark = brandTradeMark;
        this.tradeMark = tradeMark;
        this.registerTime = registerTime;
        this.registerAddress = registerAddress;
        this.businessLicense = businessLicense;
        this.foodSafetyPermit = foodSafetyPermit;
        this.takeoff = takeoff;
        this.takeoffTime = takeoffTime;
        this.takeoffReason = takeoffReason;
        this.approval = approval;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFounder() {
        return founder;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getProductAddress() {
        return productAddress;
    }

    public void setProductAddress(String productAddress) {
        this.productAddress = productAddress;
    }

    public String getBrandTradeMark() {
        return brandTradeMark;
    }

    public void setBrandTradeMark(String brandTradeMark) {
        this.brandTradeMark = brandTradeMark;
    }

    public String getTradeMark() {
        return tradeMark;
    }

    public void setTradeMark(String tradeMark) {
        this.tradeMark = tradeMark;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getFoodSafetyPermit() {
        return foodSafetyPermit;
    }

    public void setFoodSafetyPermit(String foodSafetyPermit) {
        this.foodSafetyPermit = foodSafetyPermit;
    }

    public Boolean getTakeoff() {
        return takeoff;
    }

    public void setTakeoff(Boolean takeoff) {
        this.takeoff = takeoff;
    }

    public String getTakeoffTime() {
        return takeoffTime;
    }

    public void setTakeoffTime(String takeoffTime) {
        this.takeoffTime = takeoffTime;
    }

    public String getTakeoffReason() {
        return takeoffReason;
    }

    public void setTakeoffReason(String takeoffReason) {
        this.takeoffReason = takeoffReason;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    @Override
    public String toString() {
        return "ProductBrand{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", founder='" + founder + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", telephone='" + telephone + '\'' +
                ", productAddress='" + productAddress + '\'' +
                ", brandTradeMark='" + brandTradeMark + '\'' +
                ", tradeMark='" + tradeMark + '\'' +
                ", registerTime='" + registerTime + '\'' +
                ", registerAddress='" + registerAddress + '\'' +
                ", businessLicense='" + businessLicense + '\'' +
                ", foodSafetyPermit='" + foodSafetyPermit + '\'' +
                ", takeoff=" + takeoff +
                ", takeoffTime='" + takeoffTime + '\'' +
                ", takeoffReason='" + takeoffReason + '\'' +
                ", approval='" + approval + '\'' +
                '}';
    }
}
